﻿ @extends('common.header')
<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta charset="UTF-8">
	<title>{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }} 直播__{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }}比分直播__{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }}在线直播{{ $config->webName }}</title>
	<meta name="Keywords" content="{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }} 直播{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }} 比分直播{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }} 在线直播" />
	<meta name="Description" content="蜘蛛比分网(zhizhu.TV)将为你带来{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }}在线直播以及{{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }}比分直播，欢迎您准时前来收看。"/>
	<link rel="shortcut icon" href="{{ asset('/images/favicon.ico') }}" />
	<link rel="stylesheet" type="text/css" href="{{ asset('/css/juhe/trailer.css') }}"/>
	<script src=" {{ asset('/js/jquery-1.8.3.min.js') }} "></script>
</head>
<body>
<!--面包屑导航-->
<div style="width: 1200px;height: 40px;line-height:40px;position: relative;margin: 110px auto 0">
    <ol style="float: left;overflow: hidden;color: #333;list-style: none;">
        <li style="float: left;margin-left: 5px">当前位置：</li>
        <li style="float: left;margin-left: 5px"><a href="{{ url('/') }}" style="color: #de1e30;margin-left: 5px">首页</a></li>
		 <li style="float: left;margin-left: 5px"><a href="{{ url('/live_preview') }}" style="color: #de1e30;margin-left: 5px">>直播预告</a></li>
		 <li style="float: left;margin-left: 5px">> {{ $saicheng->c4T1 }}vs{{ $saicheng->c4T2 }}</li>
    </ol>
</div>


<div class="w" style="margin-top:5px">
	<!--左侧-->
    <div class="zb_left">
		<!--对战队伍-->
        <div class="zb_score">
			<!--对战队伍信息vs-->
            <div class="zb_score_top">
                <div class="score_top_team1 score_top_team">
                    <a href="{{ url('/teamdetail') }}/{{ $home_team_info->team_id }}">
                        <img src="{{ $home_team_pic }}" alt="">
                        <span>{{ $saicheng->c4T1 }}</span>
                    </a>
                </div>
                <div class="score_top_vs">
                    <!--结束-->
                    <a href="#" class="score_top_start" style="display: none">
                        <span></span>
                        <div class="score_strt_end">
                            <p><i> 2 </i>：<i> 0 </i></p>
                            <span>{{ $saicheng->c4T1 }}</span>
                        </div>
                    </a>
                    <!--未结束-->
                    <a href="#" class="score_top_start">
                        <span></span>
                        <div>
							<!--时间-->
                            <span>{{ $saicheng->c2 }} {{ $saicheng->c3 }}</span>
                            <p><span>{{ $saicheng->c4T1 }}</span>vs<span>{{ $saicheng->c4T2 }}</span></p>
                        </div>
                    </a>
                </div>
                <div class="score_top_team2 score_top_team">
                    <a href="{{ url('/teamdetail') }}/{{ $away_team_info->team_id }}">
                        <img src="{{ $away_team_pic }}" alt="">
                        <span>{{ $saicheng->c4T2 }}</span>
                    </a>
                </div>
            </div>
           <!--倒计时-->
		   <div class="zb_score_bottom">
                <div>
                    <p>距离直播：</p>
                    <p class="timep"></p>
                </div>
            </div>
        </div>
        
		<!--最近战绩-->
        <div class="record_lately">
            <!--标题-->
            <div class="xfrw1">
                <div class="sek"></div>
                <h3>最近<span class="col2">战绩</span></h3>
            </div>
            
			
			<!--主场-->
            <table class="t_log t_log_zhu">
                <tbody>
                <!--头部-->
                <tr class="zj_bor zj_host">
                    <td colspan="5">
                        <!--队伍的图片-->
                        <i class="t24no">
                            <img alt="" width="24px" height="24px" class="t1_logo" src="{{ $home_team_pic }}">
                        </i>
                        <span class="ht_name">
                        <a href="{{ url('/teamdetail') }}/{{ $home_team_info->team_id }}" style="color:red;" target="_blank">{{ $saicheng->c4T1 }}</a>
                    </span>
                        <span class="zj_sf">
                        <span class="zj_win">{{ $home_win }}胜</span>
                        <span class="zj_equal">{{ $home_ping }}平</span>
                        <span class="zj_lose">{{ $home_lost }}负</span>
                    </span>
                    </td>
                </tr>
                <!--nav-->
                <tr>
                    <td>赛事</td>
                    <td>日期</td>
                    <td>主队</td>
                    <td>比分</td>
                    <td>客队</td>
                </tr>
                <!--内容-->
				
				@forelse( $home_recent as $key => $home_info )
                <tr class="zj_h_tr">
                    <td class="jf_td_light">{{ $home_info['league_name'] }}</td>
                    <td>{{ $home_info['c2'] }}</td>
                    <td>
						@if( $home_info['recent_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $home_info['home_team_id'] }}">{{ $home_info['c4T1'] }}</a>
						@else
							{{ $home_info['c4T1'] }}
						@endif
					</td>
                    <td>{{ $home_info['c4R'] }}</td>
                    <td>
						@if( $home_info['away_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $home_info['away_team_id'] }}">{{ $home_info['c4T2'] }}</a>
						@else
							{{ $home_info['c4T1'] }}
						@endif
						
					</td>
                </tr>
				@empty
				@endforelse
                
                

                </tbody>
            </table>
           

		   <!--客场-->
            <table class="t_log t_log_ke fl" style="border-right: none">
                <tbody>
                <!--头部-->
                <tr class="zj_bor zj_host">
                    <td colspan="5">
                        <!--队伍的图片-->
                        <i class="t24no"><img alt="" width="24px" height="24px" class="t1_logo"
                                              src="{{ $away_team_pic }}"></i>

                        <span class="ht_name">
                            <a href="{{ url('/teamdetail') }}/{{ $away_team_info->team_id }}" style="color:red;" target="_blank">
							{{ $saicheng->c4T2 }}
							</a>
                        </span>
                        <span class="zj_sf">
                            <span class="zj_win">{{ $away_win }}胜</span>
                            <span class="zj_equal">{{ $away_ping }}平</span>
                            <span class="zj_lose">{{ $away_lost }}负</span>
                        </span>
                    </td>
                </tr>
                <!--nav-->
                <tr>
                    <td>赛事</td>
                    <td>日期</td>
                    <td>主队</td>
                    <td>比分</td>
                    <td>客队</td>
                </tr>
                <!--内容-->
				
				@forelse( $away_recent as $key => $away_info )
                <tr class="zj_h_tr">
                    <td class="jf_td_light">{{ $away_info['league_name'] }}</td>
                    <td>{{ $away_info['c2'] }}</td>
                    <td>
						@if( $away_info['recent_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $away_info['home_team_id'] }}">{{ $away_info['c4T1'] }}</a>
						@else
							{{ $away_info['c4T1'] }}
						@endif
					</td>
                    <td>{{ $away_info['c4R'] }}</td>
                    <td>
						@if( $away_info['away_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $away_info['away_team_id'] }}">{{ $away_info['c4T2'] }}</a>
						@else
							{{ $away_info['c4T1'] }}
						@endif
						
					</td>
                </tr>
				@empty
				@endforelse
               
                
                

                </tbody>
            </table>
            <div class="clear"></div>
            <!--下方-->
            <table class="t_ball">
                <tbody>
                <tr class="zj_ball">
                    <td colspan="2" class="t_dark">进球</td>
                    <td colspan="3">{{ $home_total }}</td>
                    <td colspan="2">{{ $away_total }}</td>
                    <td colspan="3" class="t_dark">进球</td>
                </tr>
                <tr class="zj_ball">
                    <td colspan="2" class="t_dark">场均进球</td>
                    <td colspan="3">{{ $home_total_avg }}</td>
                    <td colspan="2">{{ $away_total_avg }}</td>
                    <td colspan="3" class="t_dark">场均进球</td>
                </tr>
                <tr class="zj_ball">
                    <td colspan="2" class="t_dark">失球</td>
                    <td colspan="3">{{ $home_total_lost }}</td>
                    <td colspan="2">{{ $away_total_lost }}</td>
                    <td colspan="3" class="t_dark">失球</td>
                </tr>
                <tr class="zj_ball">
                    <td colspan="2" class="t_dark">场均失球</td>
                    <td colspan="3">{{ $home_total_lost_avg }}</td>
                    <td colspan="2">{{ $away_total_lost_avg }}</td>
                    <td colspan="3" class="t_dark">场均失球</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--未来赛程-->
        <div class="record_lately">
            <!--标题-->
            <div class="xfrw1">
                <div class="sek"></div>
                <h3>未来<span class="col2">赛程</span></h3>
            </div>
            <!--主场-->
            <table class="t_log t_log_wzhu">
                <tbody>
                <!--头部-->
                <tr class="zj_bor zj_host">
                    <td colspan="5">
                        <!--队伍的图片-->
                        <i class="t24no">
                            <img alt="" width="24px" height="24px" class="t1_logo" src="{{ $home_team_pic }}">
                        </i>
                        <span class="ht_name">
                        <a href="{{ url('/teamdetail') }}/{{ $home_team_info->team_id }}" style="color:red;" target="_blank">{{ $saicheng->c4T1 }}</a>
                    </span>
                       
                    </span>
                    </td>
                </tr>
                <!--nav-->
                <tr>
                    <td>赛事</td>
                    <td>日期</td>
                    <td>主队</td>
                    <td>客队</td>
                </tr>
					<!--内容-->
					@forelse( $future_home as $key=>$future )
					<tr class="zj_h_tr">
						<td class="jf_td_light">{{ $future['league_name'] }}</td>
						<td>{{ $future['c2'] }} {{ $future['c3'] }}</td>
						<td>
							@if( $future['home_can'] )
								<a href="{{ url('/teamdetail') }}/{{ $future['home_team_id'] }}">
									{{ $future['c4T1'] }}
								</a>
							@else
								{{ $future['c4T1'] }}
							@endif
							
						</td>
						<td>
							@if( $future['away_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $future['away_team_id'] }}">
								{{ $future['c4T2'] }}
							</a>
							@else
								{{ $future['c4T2'] }}
							@endif
						</td>
					</tr>
					@empty
					@endforelse
                </tbody>
            </table>
            <!--客场-->
            <table class="t_log t_log_wke fl" style="border-right: none">
                <tbody>
                <!--头部-->
                <tr class="zj_bor zj_host">
                    <td colspan="5">
                        <!--队伍的图片-->
                        <i class="t24no"><img alt="" width="24px" height="24px" class="t1_logo"
                                              src="{{ $away_team_pic }}"></i>

                        <span class="ht_name">
                            <a href="{{ url('/teamdetail') }}/{{ $away_team_info->team_id }}" style="color:red;" target="_blank">{{ $saicheng->c4T2 }}</a>
                        </span>
                        <span class="zj_sf">
                        </span>
                    </td>
                </tr>
                <!--nav-->
                <tr>
                    <td>赛事</td>
                    <td>日期</td>
                    <td>主队</td>
                    <td>客队</td>
                </tr>
					<!--内容-->
					@forelse( $future_away as $key=>$future )
					<tr class="zj_h_tr">
						<td class="jf_td_light">{{ $future['league_name'] }}</td>
						<td>{{ $future['c2'] }} {{ $future['c3'] }}</td>
						<td>
							@if( $future['home_can'] )
								<a href="{{ url('/teamdetail') }}/{{ $future['home_team_id'] }}">
									{{ $future['c4T1'] }}
								</a>
							@else
								{{ $future['c4T1'] }}
							@endif
							
						</td>
						<td>
							@if( $future['away_can'] )
							<a href="{{ url('/teamdetail') }}/{{ $future['away_team_id'] }}">
								{{ $future['c4T2'] }}
							</a>
							@else
								{{ $future['c4T2'] }}
							@endif
						</td>
					</tr>
					@empty
					@endforelse

                </tbody>
            </table>
            <div class="clear"></div>
        </div>
       


		<!--主场客场阵容-->
        <div class="rmss cont_t_r">
            
			<div class="jfb" id="recom_news" style="margin-top: 0">
                <a href="javascript:;">主场</a>
                <a href="javascript:;">客场</a>
            </div>
           
			<div class="team1 team_r">
                <table class="js-tr-title-grey">
                    <!--头部-->
                    <thead>
						<tr class="title tit">
							<td colspan="13">{{ $league_name }} {{ $saicheng->c4T1 }}阵容</td>
						</tr>
						<!--nav-->
						<tr class="sub-title tit">
							<td>号码</td>
							<td>国籍</td>
							<td class="member">球员</td>
							<td>位置</td>
							<td>年龄</td>
							<td>身高(cm)</td>
							<td>体重(kg)</td>
							<td>入会时间</td>
							<td class="time">身价(万欧)</td>
					  
						</tr>
                    </thead>
                    <!--队员列表-->
                    <tbody>
					
						@forelse( $home_player_array as $key => $lineup )
							<tr class="zhongchang">
								<td>{{ $lineup->jersey_num }}</td>
								<td class="guoji">
									<!--国际图片-->
									<i class="icon-matchflag_Country" >{{ $lineup->country }}</i>
								</td>
								<td class="qiuyuan">
									<!--球员头像图片-->
									<a href="{{ url('/playerdetail') }}/{{ $lineup->player_id }}" class="name">{{ $lineup->name }}</a>
								</td>
								<td data-name="">{{ $lineup->position_intro }}</td>
								<td>{{ $lineup->age }}</td>
								<td>{{ $lineup->height }}</td>
								<td>{{ $lineup->weight }}</td>
								<td>{{ $lineup->join_date }}</td>
								<td>{{ $lineup->worth }}</td>
							</tr>
						@empty
						@endforelse
					</tbody>
                </table>
            
			</div>
            
			<div class="team2 team_r">
				<table class="js-tr-title-grey">
                    <!--头部-->
                    <thead>
                    <tr class="title tit">
                        <td colspan="13">{{ $league_name }} {{ $saicheng->c4T2 }}阵容</td>
                    </tr>
                    <!--nav-->
                    <tr class="sub-title tit">
                        <td>号码</td>
						<td>国籍</td>
						<td class="member">球员</td>
						<td>位置</td>
						<td>年龄</td>
						<td>身高(cm)</td>
						<td>体重(kg)</td>
						<td>入会时间</td>
						<td class="time">身价(万欧)</td>
                  
                    </tr>
                    </thead>
                    <!--队员列表-->
                    <tbody>
						
						@forelse( $away_player_array as $key => $lineup )
							<tr class="zhongchang">
								<td>{{ $lineup->jersey_num }}</td>
								<td class="guoji">
									<!--国际图片-->
									<i class="icon-matchflag_Country" >{{ $lineup->country }}</i>
								</td>
								<td class="qiuyuan">
									<!--球员头像图片-->
									<a href="{{ url('/playerdetail') }}/{{ $lineup->player_id }}" class="name">{{ $lineup->name }}</a>
								</td>
								<td data-name="">{{ $lineup->position_intro }}</td>
								<td>{{ $lineup->age }}</td>
								<td>{{ $lineup->height }}</td>
								<td>{{ $lineup->weight }}</td>
								<td>{{ $lineup->join_date }}</td>
								<td>{{ $lineup->worth }}</td>
							</tr>
						@empty
						@endforelse
						
						
                    </tbody>
                </table>
            
			</div>
        </div>
    </div>
   
   
	<!-- 右侧排名 -->
	<div class="zb_right" >
        
		<!--标题-->
        <div class="xfrw1" style="width: 350px">
            <div class="sek"></div>
            <h3>联赛<span class="col2">排名</span></h3>
        </div>
        
		<table class="rank">
            <thead>
            <tr>
                <td>排名</td>
                <td>球队</td>
                <td>赛</td>
                <td>胜</td>
                <td>平</td>
                <td>负</td>
                <td>积分</td>
            </tr>
            </thead>
            <!--排名列表（20）-->
            <tbody>
            
			@forelse( $scorerank as $key => $rank_info )
				@if( $key<3 )
				<tr>
					<td class="red">{{ $rank_info->rank_index }}</td>
					<td class="name" title="{{ $rank_info->name_zh }}">
						<a href="{{ url('/teamdetail') }}/{{ $rank_info->team_id }}">{{ $rank_info->name_zh }}</a>
					</td>
					<td>{{ $rank_info->played }}</td>
					<td>{{ $rank_info->win }}</td>
					<td>{{ $rank_info->draw }}</td>
					<td>{{ $rank_info->lost }}</td>
					<td>{{ $rank_info->score }}</td>
				</tr>
				@else
				<tr>
					<td>{{ $rank_info->rank_index }}</td>
					<td class="name" title="{{ $rank_info->name_zh }}">
					<a href="{{ url('/teamdetail') }}/{{ $rank_info->team_id }}" >{{ $rank_info->name_zh }}</a>
					</td>
					<td>{{ $rank_info->played }}</td>
					<td>{{ $rank_info->win }}</td>
					<td>{{ $rank_info->draw }}</td>
					<td>{{ $rank_info->lost }}</td>
					<td>{{ $rank_info->score }}</td>
				</tr>
				@endif
			@empty
			@endforelse
           
			</tbody>
        </table>

	</div>
</div>
<!--各行变色-->
<script>
    $('.Contentbox').ready(function () {
        $(".js-tr-title-grey .zhongchang:even").addClass("td_nav");
    });
    $('.t_log_zhu').ready(function () {
        $(".t_log_zhu .zj_h_tr:even").addClass("td_nav");
    });
    $('.t_log_ke').ready(function () {
        $(".t_log_ke .zj_h_tr:even").addClass("td_nav");
    });
    $('.t_log_wzhu').ready(function () {
        $(".t_log_wzhu .zj_h_tr:even").addClass("td_nav");
    });
    $('.t_log_wke').ready(function () {
        $(".t_log_wke .zj_h_tr:even").addClass("td_nav");
    });
	$('.rank').ready(function () {
        $(".rank tbody tr:even").addClass("td_nav");
    });
</script>
<!--主客场切换-->
<script>
    $(".team_r").eq(0).show();
    $("#recom_news a").eq(0).addClass("hover");
    $("#recom_news a").click(function () {
        var num = $("#recom_news a").index(this);
        $("#recom_news a").removeClass("hover");
        $(this).addClass("hover");
        $(".team_r").hide();
        $(".team_r").eq(num).show().siblings('.team_r').hide();
    });
</script>
<script>
    var starttime = new Date("{{ $saicheng->c2 }} {{ $saicheng->c3 }}");
    setInterval(function () {
        var nowtime = new Date();
        var time = starttime - nowtime;
        var day = parseInt(time / 1000 / 60 / 60 / 24);
        var hour = parseInt(time / 1000 / 60 / 60 % 24);
        var minute = parseInt(time / 1000 / 60 % 60);
        var seconds = parseInt(time / 1000 % 60);
        $('.timep').html(day + "<i>天</i>" + hour + "<i>小时</i>" + minute + "<i>分钟</i>" + seconds + "<i>秒</i>");
    }, 1000);
</script>
@extends('common.footer')
</body>
</html>